import Vue from 'vue'
import App from './App'
import router from './router'
import Vant from  'vant'
import VCharts from 'v-charts';

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import atui from 'atui'
import 'atui/dist/greater-blue.css'
Vue.prototype.axios = axios
import VueAxios from 'vue-axios'
import qs from 'qs';
Vue.prototype.qs = qs;
Vue.config.productionTip = false
var axios = require('axios')
// 全局注册，之后可在其他组件中通过 this.$axios 发送数据
Vue.prototype.$axios = axios
Vue.use(VueAxios, axios)
Vue.use(router);
Vue.use(atui);
Vue.use(Vant)
Vue.use(VCharts);
Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App),
  components: {
    vButton: atui.Button,
    vDatePicker: atui.DatePicker
  },
  methods: {
    onClick () {
      alert('button click')
    }
  }
}).$mount('#app')
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

